import request from '@/utils/request'

//根据problemUid获取题目信息
export function getPrbInfoFromId(uid) {
    const data = {
        uid
    }
    return request({
        url: '/problem/uid',
        method: 'get',
        params: data
    })
}
//根据source+problemId获取题目信息
export function getPrbInfoFromSource(source, problemId) {
    const data = {
        source,
        problemId
    }
    return request({
        url: '/problem',
        method: 'get',
        params: data
    })
}
//根据题目source+id获取题目Uid
export function getPrbUidFromId(source, id) {
    const data = {
        source,
        id
    }
    return request({
        url: '/problem/get-uid',
        method: 'get',
        params: data
    })
}